package com.scetop.bank;

public class Customer {
    private String firstName;
    private String lastName;

    // 这是关键！ 建立了Customer类和Account类的关系
    private Account account;

    public Customer(String f, String l){
        this.firstName = f;
        this.lastName = l;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public String getFirstName() {
        return this.firstName;
    }

    public String getLastName() {
        return this.lastName;
    }

    public Account getAccount() {
        return this.account;
    }
}
